<template>
  <div>
    <p>欢迎使用集鲜丰后台管理系统</p>
    <!--<el-form :inline="true" :model="formInfo" class="mt20">-->
      <!--<DateBar :dateInfo.sync="formInfo"></DateBar>-->
    <!--</el-form>-->
    <!--<TableDemo></TableDemo>-->
    <!--<div id="editorElem" style="text-align:left"></div>-->
    <!--<div>&nbsp;</div>-->
    <!--<el-button type="primary" @click="getContent">查看内容</el-button>-->
  </div>
</template>

<script>

  export default {
    name: 'Welcome',
    components: {},
    data() {
      return {
        formInfo: {
          startTime: "",
          endTime: "",
          editorContent: ""
        }
      }
    },
    watch: {},
    methods: {
      getContent: function () {
        alert(this.editorContent)
      }
    },
    created() {
    },
    mounted() {
      var editor = new Editor('#editorElem')
      editor.customConfig.onchange = (html) => {
        this.editorContent = html
      }
      editor.create()
    }
  }
</script>

<style lang="scss">
</style>
